package com.toKnow.service;

import com.toKnow.model.entity.Article;
import com.toKnow.model.entity.ArticleAnswer;
import com.toKnow.model.entity.ArticleComment;
import com.toKnow.model.vo.RestrictionVo;

import java.util.List;

public interface ArticleService {
    public Article getArticle(Integer id);
    public Boolean browseArticle(Integer userId,Integer articleId);
    public Boolean changeLikeArticle(Integer userId,Integer articleId);
    public Boolean changeCollectArticle(Integer userId,Integer articleId);
    public Boolean isCollectArticle(Integer userId,Integer articleId);
    public Boolean isLikeArticle(Integer userId,Integer articleId);
//    public Boolean changeCollectArticle(Integer userId,Integer articleId);
    public List<Article> searchArticle(Integer uid,RestrictionVo restrictionVo);
    public List<ArticleComment> getComment(Integer articleId,Integer page);
    public List<ArticleAnswer> getAnswer(Integer commentId, Integer page);
    List<Article> getDraftArticle(Integer uid);
    List<Article> getCheckingArticle(Integer uid);
    Article selectArticleDraftById(Integer uid, Integer aid);
}
